﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataModel;
using SchoolDataLayer;
namespace SchoolBusiness
{
    public class Student
    {
       private readonly DLStudent st = new DLStudent();
       public int addstudent(MStudent student)
        {
            return st.AddStudent(student);
        }
        public List<MStudent> GetAllStudent()
        {
            return st.GetAllStudent();
        }
        public MStudent GetStudentById(int id)
        {
            return st.GetStudentById(id);
        }
        public List<MStudent> GetStudentListByClassSection(int grade, string section)
        {
            return st.GetStudentListByClassSection(grade, section);
        }
        public int SaveAttendence(Attend _attendence)
        {
            return st.SaveAttendence(_attendence);
        }
        public int DeleteStudentbyId(int studentId)
        {
            return st.DeleteStudentbyId(studentId);
        }
    }
}
